package com.my.test.design.template;

public abstract class Template {

    /**
     * 模板方法一般用final修饰
     */
    public final void templateMethod(){
        operate1();
        operate2();
    }

    public void operate1(){}

    public void operate2(){}

}
